]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Fix logic error
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 10 Jul 2019 20:52:09 +0000 (22:52 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 10 Jul 2019 21:50:17 +0000 (21:50 +0000)
Commit f6b4b96737d3 accidentally swapped the conditions here from
!includes() to includes().

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/621

js/ui/appDisplay.js

index 78128256dd9430141304b75351a7f1e9368a9bd7..ff771d30224574330876aff1f665ff5544d6d555 100644 (file)
@@ -1713,7 +1713,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
             let appInfo = this._source.app.get_app_info();
             let actions = appInfo.list_actions();
             if (this._source.app.can_open_new_window() &&
-                actions.includes('new-window')) {
+                !actions.includes('new-window')) {
                 this._newWindowMenuItem = this._appendMenuItem(_("New Window"));
                 this._newWindowMenuItem.connect('activate', () => {
                     if (this._source.app.state == Shell.AppState.STOPPED)
@@ -1727,7 +1727,7 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu {
 
             if (discreteGpuAvailable &&
                 this._source.app.state == Shell.AppState.STOPPED &&
-                actions.includes('activate-discrete-gpu')) {
+                !actions.includes('activate-discrete-gpu')) {
                 this._onDiscreteGpuMenuItem = this._appendMenuItem(_("Launch using Dedicated Graphics Card"));
                 this._onDiscreteGpuMenuItem.connect('activate', () => {
                     if (this._source.app.state == Shell.AppState.STOPPED)